import java.io.*;

public class Demo3 {
    public static void main(String[] args) {
        try(Reader reader=new FileReader("./text.txt")){
            char[] buffer=new char[1024];
            int n=reader.read(buffer);
            System.out.println(n);
            for(int i=0;i<n;i++){
                System.out.println(buffer[i]);
            }
        }catch (IOException e){

        }
    }
}
